home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
common
/
message.pyo
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2008-10-13
|
1KB
|
33 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
from datetime import datetime
from util import Storage, curly
class Message(Storage):
def __init__(self, buddy = None, message = None, conversation = None, type = 'incoming', timestamp = None, **other):
self.buddy = buddy
self.message = message
self.type = type
self.conversation = conversation
self.timestamp = None if timestamp is not None else datetime.utcnow()
self.update(other)
def copy(self):
m = Message()
m.update(self)
return m
class StatusUpdateMessage(Message):
def __init__(self, **info):
buddy = info['buddy']
message = curly(info['header'], source = info)
Message.__init__(self, buddy = buddy, message = message, type = 'status')